package org.deyang.tools.amazon.pojos;

public class DealDetail {
	private boolean isAmazonDeal = false;
	private boolean isMarketDeal = false;
	private boolean isFreeContent = false;
	private boolean isAmazonDealInHot = false;
	private boolean isMarketDealInHot = false;
	private boolean isNewArrival = false;
	public boolean isAmazonDeal() {
		return isAmazonDeal;
	}
	public int getDealRate() {
		int dealRate = 0;
		if (this.isAmazonDeal()){
			dealRate = dealRate + 2;
		}else if (this.isMarketDeal()){
			dealRate = dealRate + 1;
		}
		if (this.isAmazonDealInHot() || this.isMarketDealInHot()){
			dealRate = dealRate + 3;
		}
		if (this.isFreeContent){
			dealRate = dealRate + 3;
		}
		if (this.isNewArrival){
			dealRate = dealRate + 6;
		}
		return dealRate;
	}
	
	public boolean isNewArrival() {
		return isNewArrival;
	}
	public void setNewArrival(boolean isNewArrival) {
		this.isNewArrival = isNewArrival;
	}
	public boolean isFreeContent() {
		return isFreeContent;
	}
	public void setFreeContent(boolean isFreeContent) {
		this.isFreeContent = isFreeContent;
	}
	
	public void setAmazonDeal(boolean isAmazonDeal) {
		this.isAmazonDeal = isAmazonDeal;
	}
	public boolean isMarketDeal() {
		return isMarketDeal;
	}
	public void setMarketDeal(boolean isMarketDeal) {
		this.isMarketDeal = isMarketDeal;
	}
	public boolean isAmazonDealInHot() {
		return isAmazonDealInHot;
	}
	public void setAmazonDealInHot(boolean isAmazonDealInHot) {
		this.isAmazonDealInHot = isAmazonDealInHot;
	}
	public boolean isMarketDealInHot() {
		return isMarketDealInHot;
	}
	public void setMarketDealInHot(boolean isMarketDealInHot) {
		this.isMarketDealInHot = isMarketDealInHot;
	}
	
	
	

}
